<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="keywords" content="Nacos,service,discovery,performance" />
	<meta name="description" content="Nacos service discovery performance test report" />
	<!-- 网页标签标题 -->
	<title>Nacos service discovery performance test report</title>
	<link rel="shortcut icon" href="https://img.alicdn.com/tfs/TB1hgJpHAPoK1RjSZKbXXX1IXXa-64-64.png"/>
	<link rel="stylesheet" href="/build/documentation.css" />
</head>
<body>
	<div id="root"><div class="documentation-page" data-reactroot="" data-reactid="1" data-react-checksum="1659798086"><header class="header-container header-container-normal" data-reactid="2"><div class="header-body" data-reactid="3"><a href="/en-us/index.html" data-reactid="4"><img class="logo" src="/img/nacos_colorful.png" data-reactid="5"/></a><div class="search search-normal" data-reactid="6"><span class="icon-search" data-reactid="7"></span></div><span class="language-switch language-switch-normal" data-reactid="8">中</span><div class="header-menu" data-reactid="9"><img class="header-menu-toggle" src="/img/menu_gray.png" data-reactid="10"/><ul data-reactid="11"><li class="menu-item menu-item-normal" data-reactid="12"><a href="/en-us/index.html" data-reactid="13">HOME</a></li><li class="menu-item menu-item-normal menu-item-normal-active" data-reactid="14"><a href="/en-us/docs/quick-start.html" data-reactid="15">DOCS</a></li><li class="menu-item menu-item-normal" data-reactid="16"><a href="/en-us/blog" data-reactid="17">BLOG</a></li><li class="menu-item menu-item-normal" data-reactid="18"><a href="/en-us/community" data-reactid="19">COMMUNITY</a></li><li class="menu-item menu-item-normal" data-reactid="20"><a href="https://cn.aliyun.com/product/aliware/mse?spm=nacos-website.topbar.0.0.0" data-reactid="21">NACOS IN CLOUD</a><img class="menu-img" src="https://img.alicdn.com/tfs/TB1esl_m.T1gK0jSZFrXXcNCXXa-200-200.png" data-reactid="22"/></li><li class="menu-item menu-item-normal" data-reactid="23"><a href="https://job.alibaba.com/zhaopin/position_detail.htm?trace=qrcode_share&amp;positionCode=GP633620" data-reactid="24">HIRING</a><img class="menu-img" src="https://img.alicdn.com/tfs/TB1esl_m.T1gK0jSZFrXXcNCXXa-200-200.png" data-reactid="25"/></li><li class="menu-item menu-item-normal" data-reactid="26"><a href="http://console.nacos.io/nacos/index.html" data-reactid="27">DEMO-CONSOLE</a></li></ul></div></div></header><div class="bar" data-reactid="28"><div class="bar-body" data-reactid="29"><img src="/img/docs.png" class="front-img" data-reactid="30"/><div class="bar-title" data-reactid="31"><span data-reactid="32">Documentation</span><div class="bone bone-light" data-reactid="33"></div></div><img src="/img/docs.png" class="back-img" data-reactid="34"/></div></div><section class="content-section" data-reactid="35"><div class="content-body" data-reactid="36"><div class="sidemenu" data-reactid="37"><div class="sidemenu-toggle" data-reactid="38"><img src="https://img.alicdn.com/tfs/TB1E6apXHGYBuNjy0FoXXciBFXa-200-200.png" data-reactid="39"/></div><ul data-reactid="40"><li class="menu-item menu-item-level-1" data-reactid="41"><span data-reactid="42">Nacos </span><ul data-reactid="43"><li style="height:180px;overflow:hidden;" class="menu-item menu-item-level-2" data-reactid="44"><span data-reactid="45"><!-- react-text: 46 -->What is Nacos<!-- /react-text --><img style="transform:rotate(0deg);" class="menu-toggle" src="/img/arrow_down.png" data-reactid="47"/></span><ul data-reactid="48"><li class="menu-item menu-item-level-3" data-reactid="49"><a href="/en-us/docs/what-is-nacos.html" target="_self" data-reactid="50">What is Nacos</a></li><li class="menu-item menu-item-level-3" data-reactid="51"><a href="/en-us/docs/concepts.html" target="_self" data-reactid="52">Concepts</a></li><li class="menu-item menu-item-level-3" data-reactid="53"><a href="/en-us/docs/architecture.html" target="_self" data-reactid="54">Architecure</a></li><li class="menu-item menu-item-level-3" data-reactid="55"><a href="/en-us/docs/feature-list.html" target="_self" data-reactid="56">Feature list</a></li></ul></li><li style="height:324px;overflow:hidden;" class="menu-item menu-item-level-2" data-reactid="57"><span data-reactid="58"><!-- react-text: 59 -->Quick Start<!-- /react-text --><img style="transform:rotate(0deg);" class="menu-toggle" src="/img/arrow_down.png" data-reactid="60"/></span><ul data-reactid="61"><li class="menu-item menu-item-level-3" data-reactid="62"><a href="/en-us/docs/quick-start.html" target="_self" data-reactid="63">Nacos</a></li><li class="menu-item menu-item-level-3" data-reactid="64"><a href="/en-us/docs/quick-start-spring.html" target="_self" data-reactid="65">Nacos Spring</a></li><li class="menu-item menu-item-level-3" data-reactid="66"><a href="/en-us/docs/quick-start-spring-boot.html" target="_self" data-reactid="67">Nacos Spring Boot</a></li><li class="menu-item menu-item-level-3" data-reactid="68"><a href="/en-us/docs/quick-start-spring-cloud.html" target="_self" data-reactid="69">Nacos Spring Cloud</a></li><li class="menu-item menu-item-level-3" data-reactid="70"><a href="/en-us/docs/quick-start-docker.html" target="_self" data-reactid="71">Nacos Docker</a></li><li class="menu-item menu-item-level-3" data-reactid="72"><a href="/en-us/docs/use-nacos-with-dubbo.html" target="_self" data-reactid="73">Nacos with Dubbo</a></li><li class="menu-item menu-item-level-3" data-reactid="74"><a href="/en-us/docs/use-nacos-with-kubernetes.html" target="_self" data-reactid="75">Nacos with K8s</a></li><li class="menu-item menu-item-level-3" data-reactid="76"><a href="/en-us/docs/nacos-sync.html" target="_self" data-reactid="77">Nacos Sync</a></li></ul></li><li style="height:252px;overflow:hidden;" class="menu-item menu-item-level-2" data-reactid="78"><span data-reactid="79"><!-- react-text: 80 -->User Guide<!-- /react-text --><img style="transform:rotate(0deg);" class="menu-toggle" src="/img/arrow_down.png" data-reactid="81"/></span><ul data-reactid="82"><li class="menu-item menu-item-level-3" data-reactid="83"><a href="/en-us/docs/sdk.html" target="_self" data-reactid="84">Java SDK</a></li><li class="menu-item menu-item-level-3" data-reactid="85"><a href="/en-us/docs/other-language.html" target="_self" data-reactid="86">Other Language</a></li><li class="menu-item menu-item-level-3" data-reactid="87"><a href="/en-us/docs/open-api.html" target="_self" data-reactid="88">Open-API</a></li><li class="menu-item menu-item-level-3" data-reactid="89"><a href="/en-us/docs/nacos-spring.html" target="_self" data-reactid="90">Nacos Spring</a></li><li class="menu-item menu-item-level-3" data-reactid="91"><a href="/en-us/docs/system-configurations.html" target="_self" data-reactid="92">Nacos System Configurations</a></li><li class="menu-item menu-item-level-3" data-reactid="93"><a href="/en-us/docs/faq.html" target="_self" data-reactid="94">FAQ</a></li></ul></li><li style="height:36px;overflow:hidden;" class="menu-item menu-item-level-2" data-reactid="95"><span data-reactid="96"><!-- react-text: 97 -->Admin Guide<!-- /react-text --><img style="transform:rotate(-90deg);" class="menu-toggle" src="/img/arrow_down.png" data-reactid="98"/></span><ul data-reactid="99"><li class="menu-item menu-item-level-3" data-reactid="100"><a href="/en-us/docs/deployment.html" target="_self" data-reactid="101">Deployment Guide</a></li><li class="menu-item menu-item-level-3" data-reactid="102"><a href="/en-us/docs/cluster-mode-quick-start.html" target="_self" data-reactid="103">Cluster Mode Deployment</a></li><li class="menu-item menu-item-level-3" data-reactid="104"><a href="/en-us/docs/management-api.html" target="_self" data-reactid="105">Management OpenAPI</a></li><li class="menu-item menu-item-level-3" data-reactid="106"><a href="/en-us/docs/console-guide.html" target="_self" data-reactid="107">Admin Console Guide</a></li><li class="menu-item menu-item-level-3" data-reactid="108"><a href="/en-us/docs/monitor-guide.html" target="_self" data-reactid="109">Nacos Monitor Guide</a></li><li class="menu-item menu-item-level-3" data-reactid="110"><a href="/en-us/docs/nacos-config-benchmark.html" target="_self" data-reactid="111">Nacos Config Benchmark</a></li><li class="menu-item menu-item-level-3" data-reactid="112"><a href="/en-us/docs/nacos-naming-benchmark.html" target="_self" data-reactid="113">Nacos Naming Benchmark</a></li><li class="menu-item menu-item-level-3" data-reactid="114"><a href="/en-us/docs/nacos-sync-use.html" target="_self" data-reactid="115">Data Migration to Nacos</a></li></ul></li><li style="height:36px;overflow:hidden;" class="menu-item menu-item-level-2" data-reactid="116"><span data-reactid="117"><!-- react-text: 118 -->Contributor Guide<!-- /react-text --><img style="transform:rotate(-90deg);" class="menu-toggle" src="/img/arrow_down.png" data-reactid="119"/></span><ul data-reactid="120"><li class="menu-item menu-item-level-3" data-reactid="121"><a href="/en-us/docs/contributing.html" target="_self" data-reactid="122">Contribute to Nacos</a></li><li class="menu-item menu-item-level-3" data-reactid="123"><a href="/en-us/docs/contributing-flow.html" target="_self" data-reactid="124">Contributing Flow</a></li><li class="menu-item menu-item-level-3" data-reactid="125"><a href="/en-us/docs/pull-request.html" target="_self" data-reactid="126">Pull Request Template</a></li><li class="menu-item menu-item-level-3" data-reactid="127"><a href="/en-us/docs/how-to-reporting-bugs.html" target="_self" data-reactid="128">How to report bugs</a></li></ul></li><li style="height:36px;overflow:hidden;" class="menu-item menu-item-level-2" data-reactid="129"><span data-reactid="130"><!-- react-text: 131 -->Community<!-- /react-text --><img style="transform:rotate(-90deg);" class="menu-toggle" src="/img/arrow_down.png" data-reactid="132"/></span><ul data-reactid="133"><li class="menu-item menu-item-level-3" data-reactid="134"><a href="/en-us/docs/community.html" target="_self" data-reactid="135">Community</a></li><li class="menu-item menu-item-level-3" data-reactid="136"><a href="/en-us/docs/nacos-dev.html" target="_self" data-reactid="137">Develop Team</a></li></ul></li></ul></li></ul></div><div class="doc-content markdown-body" data-reactid="138"><h1>Nacos service discovery performance test report</h1>
<h2>Test purposes</h2>
<p>Main understanding Nacos service discovery performance load and capacity, to help us better manage Nacos performance quality, help users use of assessment Nacos system load faster.</p>
<h2>Testing tools</h2>
<p>We use the research of PAS performance evaluation service platform for pressure measurement, the principle is based on the use of JMeter engine, the use of PAS to automatically generate the JMeter scripts, intelligent pressure measurement.</p>
<p><img src="https://img.alicdn.com/tfs/TB1xCfDDpzqK1RjSZFvXXcB7VXa-692-297.png" alt="IMAGE"></p>
<h2>Test environment</h2>
<h3>1.environment</h3>
<table>
<thead>
<tr>
<th>indicators</th>
<th>parameter</th>
</tr>
</thead>
<tbody>
<tr>
<td>machine</td>
<td>CPU 16 nuclear, 32G memory</td>
</tr>
<tr>
<td>cluster size</td>
<td>3 nodes</td>
</tr>
<tr>
<td>Nacos version</td>
<td>1.0.0</td>
</tr>
</tbody>
</table>
<h3>2.Set the launch parameters</h3>
<pre><code>/opt/taobao/java/bin/java	 -server
-Xms20g
-Xmx20g
-Xmn10g	 -XX:MetaspaceSize=128m
-XX:MaxMetaspaceSize=320m
-XX:-OmitStackTraceInFastThrow
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/admin/nacos/logs/java_heapdump.hprof
-XX:-UseLargePages
-Djava.ext.dirs=/opt/taobao/java/jre/lib/ext:/opt/taobao/java/lib/ext:/home/admin/nacos/plugi
ns/cmdb:/home/admin/nacos/plugins/mysql	 -Xloggc:/home/admin/nacos/logs/nacos_gc.log
-verbose:gc	 -XX:+PrintGCDetails	 -XX:+PrintGCDateStamps	 -XX:+PrintGCTimeStamps
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=10	 -XX:GCLogFileSize=100M	 -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
-Dnacos.home=/home/admin/nacos	 -jar	 /home/admin/nacos/target/nacos-server.jar
--spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/home/admin/naco
s/conf/	--logging.config=/home/admin/nacos/conf/nacos-logback.xml	nacos.nacos
</code></pre>
<h2>Test scenarios</h2>
<p>The following test scenarios are service discovery interface:</p>
<ul>
<li>Verify Nacos service discovery that the ability to register instance</li>
<li>Verify Nacos service discovery that the ability to query instance</li>
<li>Verify Nacos service discovery that the ability to delete instance</li>
</ul>
<h2>Test data</h2>
<h3>1. register instance</h3>
<p>Nacos service discovery registry instance the performance of the interface, call the HTTP interface test.
The measured 3 nodes cluster performance under different pressure:</p>
<table>
<thead>
<tr>
<th style="text-align:center">machine*concurrency num</th>
<th style="text-align:center">service num</th>
<th style="text-align:center">register instance num</th>
<th style="text-align:center">TPS</th>
<th style="text-align:center">RT(ms)</th>
<th style="text-align:center">MIN RT(ms)</th>
<th style="text-align:center">MAX RT(ms)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">1*100</td>
<td style="text-align:center">80301</td>
<td style="text-align:center">84965</td>
<td style="text-align:center">1793.41</td>
<td style="text-align:center">54.63</td>
<td style="text-align:center">0.8</td>
<td style="text-align:center">1200.86</td>
</tr>
<tr>
<td style="text-align:center">3*50</td>
<td style="text-align:center">529321</td>
<td style="text-align:center">819226</td>
<td style="text-align:center">12574.8</td>
<td style="text-align:center">15.8</td>
<td style="text-align:center">0.45</td>
<td style="text-align:center">3499.59</td>
</tr>
<tr>
<td style="text-align:center">4*50</td>
<td style="text-align:center">609726</td>
<td style="text-align:center">836870</td>
<td style="text-align:center">13000</td>
<td style="text-align:center">18.54</td>
<td style="text-align:center">0.46</td>
<td style="text-align:center">3038.48</td>
</tr>
<tr>
<td style="text-align:center">4*100</td>
<td style="text-align:center">777262</td>
<td style="text-align:center">927169</td>
<td style="text-align:center">13257</td>
<td style="text-align:center">35.65</td>
<td style="text-align:center">0.48</td>
<td style="text-align:center">3231.2</td>
</tr>
</tbody>
</table>
<h3>2. query instance</h3>
<p>Nacos service discovery query instance of the performance of the interface, call the HTTP interface test.
The measured 3 nodes cluster performance under different pressure:</p>
<table>
<thead>
<tr>
<th style="text-align:center">machine*concurrency num</th>
<th style="text-align:center">service num</th>
<th style="text-align:center">register instance num</th>
<th style="text-align:center">TPS</th>
<th style="text-align:center">RT(ms)</th>
<th style="text-align:center">MIN RT(ms)</th>
<th style="text-align:center">MAX RT(ms)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">1*100</td>
<td style="text-align:center">80301</td>
<td style="text-align:center">84965</td>
<td style="text-align:center">3092.16</td>
<td style="text-align:center">30.86</td>
<td style="text-align:center">0.81</td>
<td style="text-align:center">509.4</td>
</tr>
<tr>
<td style="text-align:center">3*50</td>
<td style="text-align:center">529321</td>
<td style="text-align:center">819226</td>
<td style="text-align:center">12574.8</td>
<td style="text-align:center">15.8</td>
<td style="text-align:center">0.45</td>
<td style="text-align:center">3499.59</td>
</tr>
<tr>
<td style="text-align:center">4*50</td>
<td style="text-align:center">609726</td>
<td style="text-align:center">836870</td>
<td style="text-align:center">15603</td>
<td style="text-align:center">16.41</td>
<td style="text-align:center">0.42</td>
<td style="text-align:center">3042.17</td>
</tr>
<tr>
<td style="text-align:center">4*100</td>
<td style="text-align:center">777262</td>
<td style="text-align:center">927169</td>
<td style="text-align:center">13604</td>
<td style="text-align:center">34.19</td>
<td style="text-align:center">0.43</td>
<td style="text-align:center">3434.1</td>
</tr>
</tbody>
</table>
<h3>3. delete instance</h3>
<p>Nacos service discovery delete instance is given to the performance of the interface, call the HTTP interface test.
The measured 3 nodes cluster performance under different pressure:</p>
<table>
<thead>
<tr>
<th style="text-align:center">machine*concurrency num</th>
<th style="text-align:center">service num</th>
<th style="text-align:center">register instance num</th>
<th style="text-align:center">TPS</th>
<th style="text-align:center">RT(ms)</th>
<th style="text-align:center">MIN RT(ms)</th>
<th style="text-align:center">MAX RT(ms)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">1*100</td>
<td style="text-align:center">80301</td>
<td style="text-align:center">84965</td>
<td style="text-align:center">1118.95</td>
<td style="text-align:center">14.08</td>
<td style="text-align:center">0.7</td>
<td style="text-align:center">597.43</td>
</tr>
<tr>
<td style="text-align:center">3*50</td>
<td style="text-align:center">529321</td>
<td style="text-align:center">819226</td>
<td style="text-align:center">14508.53</td>
<td style="text-align:center">11.23</td>
<td style="text-align:center">0.4</td>
<td style="text-align:center">3274.49</td>
</tr>
<tr>
<td style="text-align:center">4*50</td>
<td style="text-align:center">609726</td>
<td style="text-align:center">836870</td>
<td style="text-align:center">15476.93</td>
<td style="text-align:center">16.02</td>
<td style="text-align:center">0.38</td>
<td style="text-align:center">3106.23</td>
</tr>
<tr>
<td style="text-align:center">4*100</td>
<td style="text-align:center">777262</td>
<td style="text-align:center">927169</td>
<td style="text-align:center">11940.9</td>
<td style="text-align:center">40.33</td>
<td style="text-align:center">0.42</td>
<td style="text-align:center">51052.46</td>
</tr>
</tbody>
</table>
<h2>Test results</h2>
<p>Nacos service discovery performance test is aimed at a key function, through the pressure test was carried out on the 3 nodes cluster, can see the interface performance load and capacity.</p>
<ol>
<li>Service for up to 60w pressure measuring capacity, instance registered number up to 110w, cluster running steadily, the desired;(note: due to the registered instance using the HTTP interface, did not report to the heart of the TPS is included, if you want to support millions of instances of heartbeat report, need expansion and cluster level, and tuning tomcat and kernel parameters)</li>
<li>Register the TPS/query instance above 13000, interface to achieve expected;</li>
</ol>
<p>The tests only temporary instance/query/cancellation of registration, no persistent instance (subsequent);</p>
<p>This test provides you as reference, if there are any deficiency or deviation, please correct me!
If you have any other requirements on the performance, can you give us the issue.</p>
</div></div></section><footer class="footer-container" data-reactid="139"><div class="footer-body" data-reactid="140"><img src="/img/nacos_gray.png" data-reactid="141"/><div class="cols-container" data-reactid="142"><div class="col col-12" data-reactid="143"><h3 data-reactid="144">Vision</h3><p data-reactid="145">By providing an easy-to-use service infrastructure such as dynamic service discovery, service configuration, service sharing and management and etc., Nacos help users better construct, deliver and manage their own service platform, reuse and composite business service faster and deliver value of business innovation more quickly so as to win market for users in the era of cloud native and in all cloud environments, such as private, mixed, or public clouds.</p></div><div class="col col-6" data-reactid="146"><dl data-reactid="147"><dt data-reactid="148">Documentation</dt><dd data-reactid="149"><a href="/en-us/docs/what-is-nacos.html" target="_self" data-reactid="150">Overview</a></dd><dd data-reactid="151"><a href="/en-us/docs/quick-start.html" target="_self" data-reactid="152">Quick start</a></dd><dd data-reactid="153"><a href="/en-us/docs/contributing.html" target="_self" data-reactid="154">Developer guide</a></dd></dl></div><div class="col col-6" data-reactid="155"><dl data-reactid="156"><dt data-reactid="157">Resources</dt><dd data-reactid="158"><a href="/en-us/community/index.html" target="_self" data-reactid="159">Community</a></dd><dd data-reactid="160"><a href="https://www.aliyun.com/product/acm?source_type=nacos_pc_20181219" target="_self" data-reactid="161">Cloud Service ACM</a></dd><dd data-reactid="162"><a href="https://www.aliyun.com/product/edas?source_type=nacos_pc_20181219" target="_self" data-reactid="163">Cloud Service EDAS</a></dd><dd data-reactid="164"><a href="https://www.aliyun.com/product/ahas?source_type=nacos_pc_20190225" target="_self" data-reactid="165">Cloud Service AHAS</a></dd></dl></div></div><div class="copyright" data-reactid="166"><span data-reactid="167">@ 2018 The Nacos Authors | An Alibaba Middleware (Aliware) Project</span></div></div></footer></div></div>
	<script src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
	<script src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
	<script>
		window.rootPath = '';
  </script>
	<script src="/build/documentation.js"></script>
</body>
</html>